package com.xysoft.platform.user.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.web.servlet.ModelAndView;

import com.xysoft.framework.mvc.BasicController;
import com.xysoft.framework.mvc.ModelAndViewBuilder;

public class UserController extends BasicController {
	
	public ModelAndView doTest() {
		System.out.println("aaa");
		return new ModelAndViewBuilder().freemarker("/test").build();
	}
	
	public ModelAndView doJson() {
		System.out.println("json");
		Map<String, String> m = new HashMap<String, String>();
		m.put("a", "aa");
		m.put("b", "bb");
		return new ModelAndViewBuilder().jackson(m).build();
	}
}
